<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "z_setting".
 *
 * @property int $id
 * @property int $start
 * @property int $end
 * @property float $amount
 */
class ZSetting extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'z_setting';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['start', 'end'], 'integer'],
            [['amount'], 'number'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'start' => 'Start',
            'end' => 'End',
            'amount' => 'Amount',
        ];
    }
}
